package com.itheima.health.dao;

import com.github.pagehelper.Page;
import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.pojo.CheckItem;
import com.itheima.health.pojo.Menu;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 * @Author xuxu
 * @Date 2020/4/15
 * @Version v1.0
 * @Description 菜单持久层dao
 */
public interface MenuDao {
    //查询菜单
    List<Menu> findAll();

    //删除
    void deleteById(@Param("id") Integer id);

    Long countById(@Param("id") Integer id);

    //基于分页插件进行分页查询
    Page<Menu> pageQuery(QueryPageBean queryPageBean);

    //通过id,查询
    Menu findById(Integer id);

    //编辑菜单
    void updateMenu(Menu menu);

    //新增菜单
    void add(Menu menu);
}
